/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using DGZImp.SysEntity;

namespace DGZImp.ApsProject.DomainModels
{
    [Entity(TableCnName = "wms同步日志表", TableName = "WMS_SyncdataLog", DBServer = "ServiceDbContext")]
    public partial class Wms_SyncdataLog : ServiceEntity
    {
        /// <summary>
        ///ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        [Key]
        [Display(Name = "ID")]
        [Column(TypeName = "bigint")]
        [Required(AllowEmptyStrings = false)]
        public long SyncDataLogId { get; set; }

        /// <summary>
        ///同步程序名
        /// </summary>
        [Display(Name = "同步程序名")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        public string FunctionName { get; set; }


        /// <summary>
        ///同步开始时间
        /// </summary>
        [Display(Name = "同步开始时间")]
        [Column(TypeName = "datetime")]
        public DateTime? SyncStartTime { get; set; }

        /// <summary>
        ///最后一次同步时间
        /// </summary>
        [Display(Name = "最后一次同步时间")]
        [Column(TypeName = "datetime")]
        public DateTime? SyncEndTime { get; set; }

        /// <summary>
        ///最后一次同步时间
        /// </summary>
        [Display(Name = "执行开始时间")]
        [Column(TypeName = "datetime")]
        public DateTime? RunStartTime { get; set; }


        /// <summary>
        ///最后一次同步时间
        /// </summary>
        [Display(Name = "执行结束时间")]
        [Column(TypeName = "datetime")]
        public DateTime? RunEndTime { get; set; }

        /// <summary>
        ///最后运行时长
        /// </summary>
        [Display(Name = "最后运行时长")]
        [Column(TypeName = "int")]
        public int? TimeUsed { get; set; }

        /// <summary>
        ///数据更新时间戳
        /// </summary>
        [Display(Name = "数据更新时间戳")]
        [Column(TypeName = "datetime")]
        public DateTime? DataTimestamp { get; set; }

        /// <summary>
        ///是否有效
        /// </summary>
        [Display(Name = "是否有效")]
        [Column(TypeName = "int")]
        public int? IsValid { get; set; }

        /// <summary>
        ///创建用户
        /// </summary>
        [Display(Name = "创建用户")]
        [Column(TypeName = "bigint")]
        public long? CreateId { get; set; }

        /// <summary>
        ///创建人
        /// </summary>
        [Display(Name = "创建人")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        public string Creator { get; set; }

        /// <summary>
        ///创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        [Column(TypeName = "datetime")]
        public DateTime? CreateTime { get; set; }

        /// <summary>
        ///修改用户
        /// </summary>
        [Display(Name = "修改用户")]
        [Column(TypeName = "bigint")]
        public long? ModifyId { get; set; }

        /// <summary>
        ///修改人
        /// </summary>
        [Display(Name = "修改人")]
        [MaxLength(30)]
        [Column(TypeName = "nvarchar(30)")]
        public string Modifier { get; set; }

        /// <summary>
        ///修改时间
        /// </summary>
        [Display(Name = "修改时间")]
        [Column(TypeName = "datetime")]
        public DateTime? ModifyTime { get; set; }

        /// <summary>
        ///状态
        /// </summary>
        [Display(Name = "状态 0-进行中，1-已完成，2--失败")]
        [Column(TypeName = "int")]
        public int? LogStatus { get; set; }


        /// <summary>
        ///修改人
        /// </summary>
        [Display(Name = "信息")]
        [MaxLength(30)]
        [Column(TypeName = "nvarchar(1000)")]
        public string LogMessage { get; set; }

        /// <summary>
        ///单次最大执行时间
        /// </summary>
        [Display(Name = "单次最大执行时间")]
        [Column(TypeName = "int")]
        public int? MaxExeTimes { get; set; } = 1;

    }
}